import React from 'react'
import PropTypes from 'prop-types'

class MessageArea extends React.Component {
  componentDidMount() {
    // do something here
  }

  render() {
    const { CodeExecutionMsg } = this.props
    return (
      <div>
        <pre>
          {CodeExecutionMsg}
        </pre>
      </div>
    )
  }
}

MessageArea.propTypes = {
  CodeExecutionMsg: PropTypes.string.isRequired,
}

export default MessageArea
